
class Date
{
private:
	unsigned LY : 1;
	unsigned DD : 5;
	unsigned MM : 4;
	unsigned YY : 22;//4194303

	long days_from_begin;
	char separ;
	char str_date[14];
	void Num_To_Str(int, char *);
	void Date_To_Str ();
	void Leap_Year (unsigned int);
	int Day_In_Month (unsigned int);
	void Days_To_Date (unsigned long);

public:	

	Date (unsigned long ofset_day= 0);
	Date (size_t, size_t, size_t);
	Date operator + (unsigned long);
	unsigned long operator - (Date & _Date);

	void Show ();	
	void Show_Str();
	bool Get_LY();
	unsigned long Get_Days();
	char * Get();
	~Date(){};
};

